import request from '@/utils/request'
// 智普问答
export function chat() {
  return request({
    url: '/zhipu/chat',
    method: 'post',
  })
}

// 查询分类标签列表
export function listCategoryTag(query) {
  return request({
    url: '/categoryTag/categoryTag/list',
    method: 'get',
    params: query
  })
}

// 查询分类标签详细
export function getCategoryTag(id) {
  return request({
    url: '/categoryTag/categoryTag/' + id,
    method: 'get'
  })
}

// 新增分类标签
export function addCategoryTag(data) {
  return request({
    url: '/categoryTag/categoryTag',
    method: 'post',
    data: data
  })
}

// 修改分类标签
export function updateCategoryTag(data) {
  return request({
    url: '/categoryTag/categoryTag',
    method: 'put',
    data: data
  })
}

// 删除分类标签
export function delCategoryTag(id) {
  return request({
    url: '/categoryTag/categoryTag/' + id,
    method: 'delete'
  })
}
